<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>当前的 list 页面</div>
    <a href="index.html">点击我去往首页</a>
    <button>后退</button>
    <script>
         //  通过点击按钮 回退到index 页面
         let btn = document.querySelector('button');
         btn.addEventListener('click',function(){
             history.back();
            //  history.go(-1);
         });
    </script>
</body>
</html>